<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script>
        var intNum = 10; //十进制整数

        // 八进制整数
        var octalNum1 = 070;
        alert(octalNum1);//56
        var octalNum2 = 078;//无效的8进制表示
        alert(octalNum2);//78

        //十六进制
        var hexNum1 = 0xa;
        alert(hexNum1);//10
        var hexNum2 = 0x1f
        alert(hexNum2);//31
    </script>
</head>
<body>

</body>
</html>